import 'package:flutter/material.dart';
import 'package:photo_view/photo_view.dart';

class PhotoViewSimpleScreen extends StatelessWidget {
  final ImageProvider? imageProvider;
  const PhotoViewSimpleScreen({Key? key, this.imageProvider}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
        onTap: () {
             Navigator.of(context).pop();
        },
        child:Scaffold(
      body: Container(
        constraints: BoxConstraints.expand(
          height: MediaQuery.of(context).size.height,
        ),
        child: PhotoView(
          imageProvider: imageProvider,
          enableRotation: true,
        ),
      ),
    ));
  }
}
